/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package se.bth.ke.firstfriend.dto;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author nico
 */
public class BatchEditArticleDTO {

    private List<EditArticleDTO> articles;
    private boolean isUpdate = false;
    
    private String content;
    
    public BatchEditArticleDTO(final EditArticleDTO article, String content) {
        this.articles = new ArrayList() {{
            add(article);
        }};
        
        this.content = content;
    }
    
    /**
     * Return the articles to be edited
     * @return 
     */
    public List<EditArticleDTO> getArticles() {
        return articles;
    }
    
    public BatchEditArticleDTO markAsUpdate() {
        this.isUpdate = true;
        return this;
    }

    /**
     * @return the isUpdate
     */
    public boolean isUpdate() {
        return isUpdate;
    }

    /**
     * @return the content
     */
    public String getContent() {
        return content;
    }
}
